import request from '@/utils/request'

// 查询硬件设备状态更新记录列表
export function listHardwareStatusUpdate(query) {
  return request({
    url: '/business/hardwareStatusUpdate/list',
    method: 'get',
    params: query
  })
}

// 查询硬件设备状态更新记录详细
export function getHardwareStatusUpdate(recordId) {
  return request({
    url: '/business/hardwareStatusUpdate/' + recordId,
    method: 'get'
  })
}

// 新增硬件设备状态更新记录
export function addHardwareStatusUpdate(data) {
  return request({
    url: '/business/hardwareStatusUpdate',
    method: 'post',
    data: data
  })
}

// 修改硬件设备状态更新记录
export function updateHardwareStatusUpdate(data) {
  return request({
    url: '/business/hardwareStatusUpdate',
    method: 'put',
    data: data
  })
}

// 删除硬件设备状态更新记录
export function delHardwareStatusUpdate(recordId) {
  return request({
    url: '/business/hardwareStatusUpdate/' + recordId,
    method: 'delete'
  })
}

// 导出硬件设备状态更新记录
export function exportHardwareStatusUpdate(query) {
  return request({
    url: '/business/hardwareStatusUpdate/export',
    method: 'get',
    params: query
  })
}

// 硬件设备更新状态
export function updateHardwareStatus(data) {
  return request({
    url: '/business/hardwareStatusUpdate/updateStatus',
    method: 'post',
    data: data
  })
}
